package org.genntii.smgateway.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.genntii.smdomain.entity.UserRole;

import java.util.ArrayList;

@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    @Select("select role_id from User_Role where user_id = #{user_id};")
    ArrayList<Long> selectByUserId(Long user_id);
}
